package com.gongpingjialoan.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

/**
 * Created by Administrator on 2015/11/5.
 */
public class ModifyMileBoardCast extends BroadcastReceiver {

    private IModifyMile iModifyMile;

    public static final String MODIFY_MILE_ACTION = "con.gongpingjia.modifymile";

    public void setiModifyMile(IModifyMile iModifyMile) {
        this.iModifyMile = iModifyMile;
    }

    @Override
    public void onReceive(Context context, Intent intent) {
        if(intent.getAction().equals(MODIFY_MILE_ACTION)){
            if(iModifyMile!=null){
                iModifyMile.modifySuccess(intent);
            }
        }

    }



    public interface IModifyMile{
        public void modifySuccess(Intent intent);
    }

}
